package com.itwxz.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itwxz.system.domain.po.WxzOrderHistory;
import com.itwxz.system.domain.dto.SelectHistoryOrderDto;
import com.itwxz.system.domain.vo.SearchOrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 历史订单Mapper接口
 *
 * @author gastronome
 * @date 2025-04-06
 */
@Mapper
public interface WxzOrderHistoryMapper extends BaseMapper<WxzOrderHistory> {
	/**
	 * 查询历史订单列表
	 *
	 * @param orderDto 历史订单
	 * @return 历史订单集合
	 */
	List<SelectHistoryOrderDto> selectWxzOrderHistoryList(SelectHistoryOrderDto orderDto);


	List<SearchOrderVo> searchOrderWithStaff(@Param("keyword") String keyword);

	/**
	 * 归档当前订单数据到历史表
	 * @return 影响行数
	 */
	Integer archiveAllOrders();
}
